package com.example.gateway;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 23050
 * @version 1.0
 * @description: 网关白名单
 * @date 2025/2/5 20:03
 */
@Configuration
@RefreshScope
@ConfigurationProperties(prefix = "security.ignore")  //从nacos上读取Security.ignore文件的配置
public class IgnoreWhiteProperties {
    /**
     * 放⾏⽩名单配置，⽹关不校验此处的⽩名单
     */
    private List<String> whites = new ArrayList<>();



    public List<String> getWhites()
    {
        return whites;
    }
    public void setWhites(List<String> whites)
    {
        this.whites = whites;
    }
}